{% extends "templates/base.html" %}

{% block title %} 
	{{ title }}
{% endblock %}

{% block header %}
{{ header }}
{% endblock %}

{% block login%}
{% if show_login %}
{{ super() }}
{% endif %}
{% endblock%}

{% block navigation %}
{% if not show_login %}
{{ super() }}
{% endif %}
{% endblock %}

{% block page_name %}
{{ content_header }}
{% endblock %}

{% block main_content %}
<p>
	<form method="POST" action="">
	<fieldset>
    <legend>User details</legend>
		<div class="div-table">		
			{% if ok_message != "" %}
				<div class="div-table-row">
					<div class="div-table-col-header">
					</div>
					<div class="div-table-col">
						<div class="ok">{{ ok_message }}</div>
					</div>
				</div>
			{% endif %}
			{% for field in main_content %}
				<div class="div-table-row">
					<div class="div-table-col-header">
						{{ field.label.text }}{% if "required" in field.flags %}<div class="error" style="display: inline;">*</div>{% endif %}:
					</div>
					<div class="div-table-col">
						{{ field }}
						{% if field.errors %}
							{% for error in field.errors %}
								<li class="error">{{error}}</li>
							{% endfor %}
						{% endif %}
					</div>
				</div>
			{% endfor %}
		</div>
		<div class="submit">
			<input type="submit" value="Save">
		</div>
		<div>
<li>is_syndic_creator - can create new syndics and create admins for them</li>
<li>is_syndic_admin - can edit it's syndiic, create immeuble and lotes for them, create immeuble managers, create lot owners</li>
		</div>
	</fieldset>
	</form>
</p>			
{% endblock %}
